<template>
  <div class="header__logo">
    <img :src="logo" class="header__logo-img">
  </div>
</template>

<script>
export default {
  name: 'HeaderLogo',
  props: {
    logo: {
      type: String,
      required: true
    }
  }
}
</script>

<style scoped>
.header__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 10px 0;
  background: linear-gradient(to right, #fff, #f8f8f8);
  position: sticky;
  z-index: 100;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header__logo:hover {
  background: linear-gradient(to right, #f8f8f8, #f0f0f0);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header__logo-img {
  height: 50px;
  width: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header__logo-img:hover {
  opacity: 0.9;
  transform: scale(1.1) rotate(-2deg);
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
}
</style>
